<?php /* @var $this Controller */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
       <meta charset="utf-8">
       <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
       <meta name="description" content="">
       <meta name="viewport" content="width=device-width">
       <link rel="shortcut icon" href="<?php echo Yii::app()->request->baseUrl; ?>/favicon.ico" type="image/x-icon" />
<!-- For third-generation iPad with high-resolution Retina display: -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="<?php echo Yii::app()->request->baseUrl; ?>/apple-touch-icon-144x144-precomposed.png">
<!-- For iPhone with high-resolution Retina display: -->
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="<?php echo Yii::app()->request->baseUrl; ?>/apple-touch-icon-114x114-precomposed.png">
<!-- For first- and second-generation iPad: -->
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="<?php echo Yii::app()->request->baseUrl; ?>/apple-touch-icon-72x72-precomposed.png">
<!-- For non-Retina iPhone, iPod Touch, and Android 2.1+ devices: -->
<link rel="apple-touch-icon-precomposed" href="<?php echo Yii::app()->request->baseUrl; ?>/apple-touch-icon-precomposed.png">
<link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/bootstrap.css">
       <link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/main.css">
<link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />

	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
<script async src="<?php echo Yii::app()->theme->baseUrl; ?>/js/vendor/modernizr-2.6.2-respond-1.1.0.min.js"></script>
</head>

<body>

<div class="wrapper">
	<div id="header">
			<?php if(Yii::app()->user->checkAccess('admin')) { ?>
				<?php $this->widget('bootstrap.widgets.TbNavbar', array(
				'type'=>'inverse',
				'brand'=>'CABS Admin Panel',
				'brandUrl'=>'#',
				'collapse'=>true,
				'items'=>array(
					array(
						'class'=>'bootstrap.widgets.TbMenu',
						'items'=>array(
							array('label'=>'Pages', 'url'=>array('/page/admin')),
							array('label'=>'Library', 'url'=>array('/library/admin')),
							array('label'=>'News', 'url'=>array('/news/admin')),
							array('label'=>'Galleries', 'url'=>array('/gallery/admin')),
							array('label'=>'Extras', 'url'=>array('/extra/admin')),
							array('label'=>'Users', 'url'=>array('/user/admin')),
							array('label'=>'Rights', 'url'=>array('/rights')),
					)),
				),
				)); ?>
			<?php } ?>
			<div class="container" id="headerlogo">
				<div id="logo"><?php echo CHtml::image(Yii::app()->request->baseUrl.'/images/cabs_logo.png',"Columbus Area Boardgaming Society"); ?></div>
			</div>
		</div><!-- header -->
	
	<div class="container" id="page">
		<div class="cabsmenu hidden-phone">
			<ul class="nav nav-pills">
				<li><a href="/home">Home</a></li>
				<li><a href="/about">About</a></li>
				<li><a href="/calendar">Calendar</a></li>
				<li><a href="/location">Location</a></li>
				<li><a href="/membership">Membership</a></li>
				<li><a href="/library">Library</a></li>
				<li><a href="/news">News</a></li>
				<!-- <li><a href="/gallery">Gallery</a></li> -->
				<li><a href="/contact">Contact</a></li>
				<?php /*if(Yii::app()->user->isGuest) {*/ ?>
				<!-- <li><a href="/user/login">Login</a></li> -->
				<?php /*} else {*/ ?>
				<!-- <li><a href="/user/logout">Logout</a></li> -->
				<?php /*}*/ ?>
			</ul>
		</div>
		<div class="cabsphone visible-phone">
			<ul class="nav nav-pills nav-stacked">
				<li><a href="/home">Home</a></li>
				<li><a href="/about">About</a></li>
				<li><a href="/calendar">Calendar</a></li>
				<li><a href="/location">Location</a></li>
				<li><a href="/membership">Membership</a></li>
				<li><a href="/library">Library</a></li>
				<li><a href="/news">News</a></li>
				<!-- <li><a href="/gallery">Gallery</a></li> -->
				<li><a href="/contact">Contact</a></li>
				<?php /*if(Yii::app()->user->isGuest) {*/ ?>
				<!-- <li><a href="/user/login">Login</a></li> -->
				<?php /*} else {*/ ?>
				<!-- <li><a href="/user/logout">Logout</a></li> -->
				<?php /*}*/ ?>
			</ul>
		</div>
	
		<?php if(isset($this->breadcrumbs)):?>
			<?php $this->widget('bootstrap.widgets.TbBreadcrumbs', array(
				'links'=>$this->breadcrumbs,
			)); ?><!-- breadcrumbs -->
		<?php endif?>
	
		<?php echo $content; ?>
		<div class="push"></div>
	</div><!-- page -->
	
	<div id="footer">
		<div class="container">
			<p class="cabsfooter">
				<span class="nav-brand">Copyright &copy; <?php echo date('Y'); ?> by Columbus Area Boardgaming Society.</span> | 
				<a href="/home">Home</a> | 
				<a href="/contact">Contact</a><!--  |  -->
				<?php /*if(Yii::app()->user->isGuest) {*/ ?>
				<!-- <a href="/user/login">Login</a> -->
				<?php /*} else {*/ ?>
				<!-- <a href="/user/logout">Logout</a> -->
				<?php /*}*/ ?>
			</p>
		</div>
	</div><!-- footer -->
</div>

</body>
</html>
